home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSI Options 3.xpl < prev    next >
Text File  |  2004-04-22  |  3KB  |  105 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="9"
  3. "COUNT"="4"
  4. "UIPATH 1"="System\Software Installation\Windows Installer"
  5. "UIPATH 2"="System\Debugging"
  6. "NAME"="Windows Installer (MSI) Logging Options"
  7. "VERSION"="3.03"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="dⁿdel da"
  10. "DESCRIPTION 1"="By default, the setup process for an application determines whether the process maintains a log for itself.  This option allows you to enable the logging for the setup of an applications, regardless of this default."
  11. "DESCRIPTION 2"="If at least one option is turned on, a logfile for every installation will be created in your TEMP directory in the form "MSI*.LOG" where "*" is a randomly generated name."
  12. "DESCRIPTION 3"="To disable logging for all applications again, clear all fields."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to Umesh Reghuram for his suggestions!"
  17. "COMMENT 2"="Thanks to GastX for his suggestions!"
  18.  
  19.  
  20. sPathSys="HKLM\Software\Policies\Microsoft\Windows\Installer\"
  21. sPathUsr="HKCU\Software\Policies\Microsoft\Windows\Installer\"
  22. sV1="Logging" 'STR - sys
  23.  
  24. iItemCount=12
  25. Dim aryText(12)
  26. Dim aryChar(12)
  27.  
  28.  
  29. Sub Plugin_Initialize 
  30.  aryText(1)="Messages: Status"
  31.  aryChar(1)="i"
  32.  
  33.  aryText(2)="Messages: Warnings"
  34.  aryChar(2)="w"
  35.   
  36.  aryText(3)="Messages: Errors"
  37.  aryChar(3)="e"
  38.  
  39.  aryText(4)="Actions: Starting"
  40.  aryChar(4)="a"
  41.  
  42.  aryText(5)="Actions: Parameters"
  43.  aryChar(5)="r"
  44.  
  45.  aryText(6)="User Requests"
  46.  aryChar(6)="u"
  47.  
  48.  aryText(7)="User interface parameters"
  49.  aryChar(7)="c"
  50.  
  51.  aryText(8)="Messages: Not enough memory / Fatal exit"
  52.  aryChar(8)="m"
  53.  
  54.  aryText(9)="Messages: Not enough disk space"
  55.  aryChar(9)="o"
  56.  
  57.  aryText(10)="Terminal Properties"
  58.  aryChar(10)="p"
  59.  
  60.  aryText(11)=" Verbose all output (log file will be much bigger)"
  61.  aryChar(11)="v"
  62.  
  63.  aryText(12)=" Debugging information (Win 2003 and up only)"
  64.  aryChar(12)="x"
  65.  
  66.  
  67.  'read value and set properties
  68.  sVal=RegReadValue(sPathSys & sV1)
  69. ''''' if len(sVal)=0 then sVal="iwearmo" 'according to MSDN
  70.  
  71.  for i=1 to iItemCount
  72.      Call SetUIElement(i,aryText(i))        
  73.      if InStr(1,sVal,aryChar(i))>0 then SetUIElementEx i,true     
  74.  next
  75.  
  76. End Sub
  77.  
  78. Sub Plugin_CheckData(ElementIndex)
  79. End Sub
  80.  
  81. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  82.  s=""
  83.  
  84.  for i=1 to iItemCount
  85.      if GetUIElementEx(i)=true then
  86.         s=s & aryChar(i)
  87.      end if
  88.  next
  89.  
  90.  if len(s)>0 then
  91.     'Enable logging
  92.     Call RegWriteValue(sPathSys & sV1,s,1)
  93.  else
  94.     'Disable logging
  95.     s=RegReadValue(sPathSys & sV1)
  96.     if IsEmpty(s)=false then
  97.        Call RegDeleteValue(sPathSys & sV1)
  98.     end if
  99.  end if
  100.  
  101. End Sub
  102.  
  103. Sub Plugin_Terminate 
  104. End Sub
  105.